package licode.unisop.provider.api;

/**
 * 定义锁接口
 *
 * @author licode
 */
public interface SiLocker {
	interface Locker {
		void lock(long timeout);
		boolean tryLock(long wait, long timeout);
		void unlock();
	}

	Locker getLocker(String lockerId);
	Locker getFairLocker(String lockerId);
}
